# Description:
# TensorBoard Debugger V2 Plugin: A plugin for inspecting and debugging
# the internals of a TensorFlow program (e.g., graphs, functions and tensors),
# with a focus on TensorFlow 2.x.

package(default_visibility = ["//tensorboard:internal"])

licenses(["notice"])

py_library(
    name = "debug_data_multiplexer",
    srcs = ["debug_data_multiplexer.py"],
    srcs_version = "PY2AND3",
    deps = [
        "//tensorboard:errors",
        "//tensorboard:expect_tensorflow_installed",
    ],
)

py_library(
    name = "debug_data_provider",
    srcs = ["debug_data_provider.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":debug_data_multiplexer",
        "//tensorboard/data:provider",
    ],
)

py_library(
    name = "debugger_v2_plugin",
    srcs = ["debugger_v2_plugin.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":debug_data_provider",
        "//tensorboard:errors",
        "//tensorboard:plugin_util",
        "//tensorboard/backend:http_util",
        "//tensorboard/plugins:base_plugin",
        "@org_pocoo_werkzeug",
    ],
)

py_test(
    name = "debug_data_multiplexer_test",
    size = "small",
    srcs = ["debug_data_multiplexer_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":debug_data_multiplexer",
        "//tensorboard:expect_tensorflow_installed",
    ],
)

py_test(
    name = "debugger_v2_plugin_test",
    size = "medium",
    srcs = ["debugger_v2_plugin_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":debug_data_multiplexer",
        ":debugger_v2_plugin",
        "//tensorboard:expect_tensorflow_installed",
        "//tensorboard/backend:application",
        "//tensorboard/plugins:base_plugin",
        "//tensorboard/util:test_util",
        "@org_pythonhosted_six",
    ],
)
